package com.xinzhitong.www.mapper;

import com.xinzhitong.www.pojo.News;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * 新闻表的相关约束
 *
 * @author 魏骆淳
 */
@Repository
public interface NewsMapper {

    @Select("select text from news where id = #{newsId}")
    News selectNewsUrl(@Param("newsId") Integer newId);

}
